package czolgisci.map;


import java.awt.Image;
import java.util.ArrayList;
import java.util.Iterator;

import utils.geom.Direction;
import utils.time.IClockListener;

import czolgisci.display.IImageContainer;
import czolgisci.events.TickEvent;
import czolgisci.tiles.ATile;
import czolgisci.tiles.TileType;
import czolgisci.tiles.factory.ITileFactory;


public class MapManager implements IImageContainer, IClockListener
{
	private ITileFactory tileKit;
	private ArrayList<Image> container;
	private Map charMap;
	
	public MapManager(Map mapObject, ITileFactory tileFactory)
	{
		this.tileKit = tileFactory;
		container = new ArrayList<Image>();
		charMap = mapObject;
		charMap.toString();
	}

	public void destroyCurrentMap()
	{

	}

	public void loadMap(Map mapObject)
	{
		TileType a = MapCodeInterpreter.decodeTileType('a');
		if ( a == null )
		{
			
		}
		tileKit.makeTank();
	}

	public ATile getNeighbourTile(ATile from, Direction direction)
	{
		return null;
	}

	public ATile getTileFromXY(int x, int y)
	{
		return null;
	}

	public ATile getTileFromIJ(int i, int j)
	{
		return null;
	}

	public void setTileAtXY(int x, int y)
	{

	}

	public void setTileAtIJ(int i, int j)
	{

	}

	public void updateMap()
	{

	}

	public Iterator<Image> iterator()
	{
		// TODO Auto-generated method stub
		return container.iterator();
	}



	public void onTick(TickEvent e)
	{
		// TODO Auto-generated method stub
		
	}

}
